﻿using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repositorys
{
    public interface IEMRRepositoty
    {
        /// <summary>
        /// 添加EMR
        /// </summary>
        /// <param name="eMR"></param>
        /// <returns></returns>
        Task<int> EMRAddAsync(EMR eMR);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<List<EMR>> EMRSelectFenye(int pageIndex, int pageSize);

        /// <summary>
        /// 查询总条数
        /// </summary>
        /// <returns></returns>
        int EMRSelectCount();

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> EMRDeleteAsync(int id);

        /// <summary>
        /// 查询所有
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<EMR> EMRSelectId(int id);

        /// <summary>
        /// 修改EMR
        /// </summary>
        /// <param name="eMRAddDto"></param>
        /// <returns></returns>
        Task<int> EMRUpdateAsync(EMR emr);
    }
}
